package com.tianji.remark.service;

import com.tianji.remark.domain.dto.LikeRecordFormDTO;
import com.tianji.remark.domain.po.LikedRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 点赞记录表 服务类
 * </p>
 *
 * @author xzh
 * @since 2024-03-16
 */
public interface ILikedRecordService extends IService<LikedRecord> {

    /**
     * 增加或取消点赞
     * @param likeRecordFormDTO
     */
    void addLikeRecord(LikeRecordFormDTO likeRecordFormDTO);

    /**
     * 查询用户是否对某个业务点赞
     * @param bizIds
     * @return
     */
    Set<Long> isBizLiked(List<Long> bizIds);

    void readLikedTimesAndSentMessages(String bizType, int maxBizSize);

}
